package com.fds.app.st.process;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.fds.app.comm.annotation.TrProc;
import com.fds.app.comm.context.Combuf;
import com.fds.app.comm.enumeration.ProcLib;
import com.fds.app.comm.enumeration.TrTable;
import com.fds.app.comm.service.TrProcessable;

@Component
@TrProc(table = TrTable.TR_STOCK, procLib = ProcLib.L_ST300)
public class TrProcSt300 implements TrProcessable {
	private Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private Combuf combuf;

	@Override
	public void init() {
		logger.info("TrProcSt300 >> init");
		combuf.showCombufStatus();
	}

	@Override
	public void process() {
		logger.info("TrProcSt300 >> process");
		logger.info("TrProcSt300 >> 운용지시 테이블 >> {}", combuf.getTrBaseDto());
		logger.info("TrProcSt300 >> combuf {}", combuf);
	}

	@Override
	public void finish() {
		logger.info("TrProcSt300 >> finish");
	}

}